package com.leen.news.controller;

import com.leen.exam.entity.News;
import org.springframework.web.bind.annotation.*;

/**
 * 新闻标签类说明
 *
 * @author admin
 * @date 2021-05-18
 */
@RestController
@RequestMapping(value = "/newstag")
public class NewsTagController {

    /**
     * 新增操作
     * @param news
     * @return
     */
    @PostMapping(value = "/add")
    public int add(@RequestBody News news){
        System.out.println(news.toString());
        System.out.println("新增成功");
        return 1;
    }
}
